import React, { Component } from 'react'
import { connect } from 'react-redux'

export class Sto extends Component {
    render() {
        console.log(this.props)
        return (
            <div>
                11111
            </div>
        )
    }
    componentDidMount() {
        this.props.add({ type: "AD" })
    }
}

const mapStateToProps = (state) => ({
    a: 100
})

const mapDispatchToProps = () => {
    return {
        
    }
}

export default connect(mapStateToProps, mapDispatchToProps)(Sto)
